package com.hmsg.health.utils;

public class ApiException extends RuntimeException {
	private static final long serialVersionUID = 2186957811943999230L;
	private ErrorCode errorCode;

	public ErrorCode getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(ErrorCode errorCode) {
		this.errorCode = errorCode;
	}

	public ApiException(ErrorCode errorCode) {
		super(errorCode.memo());
		this.errorCode = errorCode;
	}
	public ApiException(ErrorCode errorCode,String message) {
		super(message);
		this.errorCode = errorCode;
	}
}
